package wisp.gui;

//GTGE GUI
import wisp.game.PlayerSprite;

import com.golden.gamedev.gui.*;
import com.golden.gamedev.gui.toolkit.*;

public class MenuBar extends TPane{

	private PlayerSprite player;
	private GUImanager guiManager;
	
	private TButton charInfo;
	private TButton skillInfo;
	private TButton knapsack;
	private TButton blessWindow;
	private TButton curseWindow;
	private TButton inboxWindow;
	private TButton comradeWindow;
	
	public MenuBar(PlayerSprite p, GUImanager g){
		super(0,520,480,80);
		
		player = p;
		guiManager = g;
		
		charInfo = new TButton("Chara", 5,5,40,40){
			public void doAction(){
				guiManager.ToggleStatWindow();
			}
		};
		
		skillInfo = new TButton("Skills", 55,5,40,40){
			public void doAction(){
				guiManager.ToggleSkillWindow();
			}
		};
		
		knapsack = new TButton("Knapsack", 105,5,40,40){
			public void doAction(){
				guiManager.ToggleKnapsack();
			}
		};
		
		blessWindow = new TButton("Bless", 155,5,40,40){
			public void doAction(){
				guiManager.ToggleBlessWindow();
			}
		};
		
		curseWindow  = new TButton("Curse", 205,5,40,40){
			public void doAction(){
				guiManager.ToggleCurseWindow();
			}
		};
		
		comradeWindow = new TButton("Comrades", 255, 5, 40, 40){
			public void doAction(){
				guiManager.ToggleComradeWindow();
			}
		};
		
		inboxWindow = new TButton("Inbox", 305, 5, 40, 40){
			public void doAction(){
				guiManager.ToggleInbox();
			}
		};
		
		this.add(charInfo);
		this.add(skillInfo);
		this.add(knapsack);
		this.add(blessWindow);
		this.add(curseWindow);
		this.add(comradeWindow);
		this.add(inboxWindow);
		
		
	}


}
